package com.yzd.learnjava.iniialization;

import sun.net.www.content.audio.x_aiff;

public class Leaf {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Leaf leaf = new Leaf();
		leaf.increment().increment().increment().increment().print();
	}
	int i = 0;
	Leaf increment(){
		i++;
		return this;
	}
	
	void print(){
		System.out.println("i = " + i);
	}
}
